<?
include('custom/dueltabs.php');
 
?>
<table id="action_list">
<?

    ?><tr>
        <td valign="top"><img width="150" src="<?= $this->duelUser['u_fb_pic_square'] ?>"/>
          <br/><div><ul style="padding: 10px;">
            <?= DisplayAttackerList($this->mobObjects) ?>
          </ul></div>
        </td>
        <td valign="top">    
          <h2><?= $this->act['a_name'] ?></h2> 
          <br/> 
          <div class="action_intro">
            <?= nl2br($this->act['a_text']) ?><br/>
          </div>
          <br/>
          <!--<?
          foreach($this->mobObjects as $mo)
            print($mo->stats['enemy'].'-');
          ?>-->
          <div class="action_fightlog"><?
          
          executeFight($this->mobObjects, $this->character, $this->act);
          
          if ($this->character->getCharacterStat('HP') > 0)
          {
            // player victory
            $this->character->charDS['c_rank_duelv'] =
              registerDuel($this->character, $this->duelPartner, '- challenger victory');
            $this->character->saveCharacter();
          }
          else
          {
            // player defeat
            registerDuel($this->duelPartner, $this->character, '- challenger defeat');
          }
          
          ?>
          <br/>
          <input type="button" name="action!" value="OK" onclick="document.location='<?= actionUrl('index', 'duel') ?>';"/>
          </div>
        </td>
      </tr><?

?>
</table>